<script setup>
  import { onMounted, ref } from 'vue'
  const h1Ref = ref(null)
  onMounted(()=>{
  console.log('h1标签',h1Ref.value)
  })
</script>
<template>
<div>
  <h1 ref="h1Ref">hello vue</h1>
</div>
</template>
<style scoped>
</style>